<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>请支付</title>
    <script type="text/javascript" src="jquery-3.5.1.min.js"></script>
</head>
<body>
<h1>下单成功，请支付</h1>
<p>订单号：<span th:text="${orderId}"></span></p>
<span id="time"></span><br>
<a href="javascript:pay()">支付</a>
</body>
</html>

<script type="text/javascript" th:inline="javascript">
    function pay() {
        window.location.href = "/pay/[(${orderId})]";
    }

</script>